<template>
	<view>
		<view>
			<image style="width: 100%;height: 250rpx;" :src="stadium.stadiumLogo"></image>
		</view>
		<view style="height: 50rpx;"></view>
		<view class="content"><text style="margin-left: 50rpx;">场馆名：{{stadium.stadiumName}}</text></view>
		<view style="height: 50rpx;"></view>
		<view class="content"><text style="margin-left: 50rpx;">负责人：{{stadium.stadiumLeaderName}}</text></view>
		<view style="height: 50rpx;"></view>
		<view class="content"><text style="margin-left: 50rpx;">地址：{{stadium.stadiumAddress}}</text></view>
		<view style="height: 50rpx;"></view>
		<view class="content"><text style="margin-left: 50rpx;">负责人电话：{{stadium.stadiumLeaderTel}}</text></view>
		<view style="height: 50rpx;"></view>
		<view class="content"><text style="margin-left: 50rpx;">场馆简介：</text></view>
		<view style="height: 50rpx;"></view>
		<view style="margin-left: 50rpx;">
			<text>{{stadium.stadiumDesc}}</text>
		</view>
	</view>
</template>

<script>
	import base from '@/common/base.js'
	export default{
		data(){
			return {
				stadium:[]
			}
		},
		onLoad() {
			this.getStadium();
		},
		methods:{
			getStadium(){
				uni.request({
					url:base.urlPrefix+'yoga_app/stadium-info/coachFindStadiumByCoachId',
					data:{
						coachId:base.coach.coachId
					},
					success: (res) => {
						this.stadium=res.data.object;
					}
				})
			}
		}
	}
</script>

<style>
	.content{
		height: 50rpx;
		background-image: linear-gradient(-90deg, blue, white);
	}
</style>
